home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsISelectionDisplay.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISelectionDisplay.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISelectionDisplay_h__
  6. #define __gen_nsISelectionDisplay_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsISelectionDisplay */
  19. #define NS_ISELECTIONDISPLAY_IID_STR "0ddf9e1c-1dd2-11b2-a183-908a08aa75ae"
  20.  
  21. #define NS_ISELECTIONDISPLAY_IID \
  22.   {0x0ddf9e1c, 0x1dd2, 0x11b2, \
  23.     { 0xa1, 0x83, 0x90, 0x8a, 0x08, 0xaa, 0x75, 0xae }}
  24.  
  25. class NS_NO_VTABLE nsISelectionDisplay : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISELECTIONDISPLAY_IID)
  29.  
  30.   enum { DISPLAY_TEXT = 1 };
  31.  
  32.   enum { DISPLAY_IMAGES = 2 };
  33.  
  34.   enum { DISPLAY_FRAMES = 4 };
  35.  
  36.   enum { DISPLAY_ALL = 7 };
  37.  
  38.   /* void setSelectionFlags (in short toggle); */
  39.   NS_IMETHOD SetSelectionFlags(PRInt16 toggle) = 0;
  40.  
  41.   /* short getSelectionFlags (); */
  42.   NS_IMETHOD GetSelectionFlags(PRInt16 *_retval) = 0;
  43.  
  44. };
  45.  
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSISELECTIONDISPLAY \
  48.   NS_IMETHOD SetSelectionFlags(PRInt16 toggle); \
  49.   NS_IMETHOD GetSelectionFlags(PRInt16 *_retval); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSISELECTIONDISPLAY(_to) \
  53.   NS_IMETHOD SetSelectionFlags(PRInt16 toggle) { return _to SetSelectionFlags(toggle); } \
  54.   NS_IMETHOD GetSelectionFlags(PRInt16 *_retval) { return _to GetSelectionFlags(_retval); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSISELECTIONDISPLAY(_to) \
  58.   NS_IMETHOD SetSelectionFlags(PRInt16 toggle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionFlags(toggle); } \
  59.   NS_IMETHOD GetSelectionFlags(PRInt16 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionFlags(_retval); } 
  60.  
  61. #if 0
  62. /* Use the code below as a template for the implementation class for this interface. */
  63.  
  64. /* Header file */
  65. class nsSelectionDisplay : public nsISelectionDisplay
  66. {
  67. public:
  68.   NS_DECL_ISUPPORTS
  69.   NS_DECL_NSISELECTIONDISPLAY
  70.  
  71.   nsSelectionDisplay();
  72.  
  73. private:
  74.   ~nsSelectionDisplay();
  75.  
  76. protected:
  77.   /* additional members */
  78. };
  79.  
  80. /* Implementation file */
  81. NS_IMPL_ISUPPORTS1(nsSelectionDisplay, nsISelectionDisplay)
  82.  
  83. nsSelectionDisplay::nsSelectionDisplay()
  84. {
  85.   /* member initializers and constructor code */
  86. }
  87.  
  88. nsSelectionDisplay::~nsSelectionDisplay()
  89. {
  90.   /* destructor code */
  91. }
  92.  
  93. /* void setSelectionFlags (in short toggle); */
  94. NS_IMETHODIMP nsSelectionDisplay::SetSelectionFlags(PRInt16 toggle)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* short getSelectionFlags (); */
  100. NS_IMETHODIMP nsSelectionDisplay::GetSelectionFlags(PRInt16 *_retval)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. #endif /* __gen_nsISelectionDisplay_h__ */
  110.